<%@ page language="java" import="java.util.*" pageEncoding="utf-8" %>
<!DOCTYPE html>
<%@ include file="console_element/top.jsp" %>
<script type="text/javascript">
    function check() {
        var tname = document.getElementById("tname");

        if (tname.value == "") {
            alert("请输入主题名称！！");
            tname.focus();
            return false;
        }
        return true;

    }
</script>
<div id="main">
    <%@ include file="console_element/left.jsp" %>
    <div id="opt_area">
        <h1 id="opt_type"> 修改主题： </h1>
        <form action="<%=basePath%>topic/modify" method="post" onsubmit="return check()">
            <p>
                <label> 主题名称 </label>
                <input name="tname" type="text" class="opt_input" value="${topic.tname}"/>
                <input name="tid" type="hidden" value="${topic.tid}"/>
            </p>
            <input name="action" type="hidden" value="addtopic"/>
            <input type="submit" value="提交" class="opt_sub"/>
            <input type="reset" value="重置" class="opt_sub"/>
        </form>
    </div>
</div>
<%@ include file="console_element/bottom.html" %>
